package com.cskaoyan.bean;

import lombok.Data;

import java.util.Date;

@Data
public class MarketAdmin {
    private Integer id;

    private String username;

    private String password;

    private String lastLoginIp;

    private Date lastLoginTime;

    private String avatar;

    private Date addTime;

    private Date updateTime;

    private Boolean deleted;

    //{"roleIds":[1,2,3]} → Integer[]
    //{"roleIds":"[1,2,3]"} → String
    private Integer[] roleIds;
    //insertAdmin(MarketAdmin admin)   Integer[] → String → varchar
    // insert into market_admin () values (?,?,?)

    // MarketAdmin select()    String → Integer[]
    // select id,name,roleIds  from market_admin

}